package com.visikard.response;

import org.json.JSONException;
import org.json.JSONObject;

public class DeleteCouponResponse extends BaseResponse {
	private String status;

	public void setStatus(String status) {
		this.status = status;
	}

	public String getStatus() {
		return status;
	}

	@Override
	public void extractDataFromServer(String response) throws JSONException {
		super.extractDataFromServer(response);

		// response OK
		if (errorCode == SUCCESS) {

			JSONObject jsonObject = new JSONObject(response);

			status = jsonObject.optString("status");
			setStatus(status);
		}

	}
}
